I'm just trying to spawn an enemy, that's it. I keep getting this error:
Your scripts are currently disabled due to an error that was
detected. Please make appropriate changes to your script's code and
click the "Save Script" button. We will then attempt to start running
the scripts again. More info... If this script was installed from the Mod Library, you might find help in the Community API Forum.
For reference, the error message generated was: TypeError: Cannot read properties of undefined (reading 'who')
TypeError: Cannot read properties of undefined (reading 'who')
at handleInput (apiscript.js:6368:43)
at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:65:16)
at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:70:8)
at /home/node/d20-api-server/api.js:1762:12
at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560
at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)
at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546)
at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489)
at Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425)
at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:111:461
Code in question: !{{ !Spawn --name| Enemy --bar1|[[@{selected|bar1}]]/10 --bar2|@(selected.tracker) --bar3|[[@{selected|bar3}]]/11 }} I should note that Enemy 's name as it appears on the sheet isn't the same as it appears on the nameplate under the token.